﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="TestSuiteModule.cs" company="">
//   
// </copyright>
// <summary>
//   The test suite module.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace UITest.Helpers.TFS
{
    using Microsoft.TeamFoundation.TestManagement.Client;

    /// <summary>
    /// The test suite module.
    /// </summary>
    public class TestSuiteModule : TFSModule
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="TestSuiteModule"/> class.
        /// </summary>
        /// <param name="tfs">
        /// The tfs.
        /// </param>
        public TestSuiteModule(TFSLibrary tfs)
            : base(tfs)
        {
        }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        /// The find.
        /// </summary>
        /// <param name="id">
        /// The id.
        /// </param>
        /// <returns>
        /// The <see cref="ITestSuiteBase"/>.
        /// </returns>
        public ITestSuiteBase Find(int id)
        {
            return this.TFS.TestManagement.TestSuites.Find(id);
        }

        #endregion
    }
}